import request from '@/utils/request'

// 查询系统推送列表
export function listCatMassagePush(query) {
  return request({
    url: '/system/catMassagePush/list',
    method: 'get',
    params: query
  })
}

// 查询系统推送详细
export function getCatMassagePush(id) {
  return request({
    url: '/system/catMassagePush/' + id,
    method: 'get'
  })
}

// 新增系统推送
export function addCatMassagePush(data) {
  return request({
    url: '/system/catMassagePush',
    method: 'post',
    data: data
  })
}

// 修改系统推送
export function updateCatMassagePush(data) {
  return request({
    url: '/system/catMassagePush',
    method: 'put',
    data: data
  })
}

// 删除系统推送
export function delCatMassagePush(id) {
  return request({
    url: '/system/catMassagePush/' + id,
    method: 'delete'
  })
}

// 导出系统推送
export function exportCatMassagePush(query) {
  return request({
    url: '/system/catMassagePush/export',
    method: 'get',
    params: query
  })
}